package com.woniuxy.yoga.commons.redis.util.rediskeyutil;

/**
 * 产品服务的KEY
 */
public class ProductRedisKeyUtil {

    /**
     * 团队产品预约人数加一的锁KEY
     * @param teamProductId
     * @return
     */
    public static String lockBookNumByTeamProductId(Integer teamProductId){
        return "lock:bookNum:add:teamProductId:" + teamProductId;
    }

    /**
     * 新增私教产品的锁KEY
     * @param privateProductName
     * @return
     */
    public static String lockAddByPrivateProductName(String privateProductName){
        return "lock:add:privateProduct:privateProductName:" + privateProductName;
    }
}
